/**
 * @author 蔡明宗
 * @date 2010-11-29 下午11:56:45
 */

package com.ad.services;

import java.util.List;

import com.ad.dao.IRegionDao;
import com.ad.hibernate.Region;

public class RegionService implements IRegionService {

	private IRegionDao regionDao;

	@Override
	public List<Region> getRegionChildren(String regionId) {
		return this.regionDao.getChildren(regionId);
	}

	@Override
	public List<Region> getRegions(String regionName) {
		return this.regionDao.getRegionByName(regionName);
	}

	public void setRegionDao(IRegionDao regionDao) {
		this.regionDao = regionDao;
	}

	public IRegionDao getRegionDao() {
		return regionDao;
	}
}
